import re
pattern = r'[?|&]'
url ='http://localhost:8080/myweb/index.aspx?username="mr"&pwd="woshi"'
result =re.split(pattern,url)
print(result)